#define  _CRT_SECURE_NO_WARNINGS 1
#include<assert.h>
size_t my_strlen1(const char* p)
{
	assert(p);
	int count = 0;
	while (*p)
	{
		count++;
		p++;
	}
	return count;
}

size_t my_strlen2(const char* p)
{
	assert(p);
	const char* s = p;
	while (*p)
	{
		p++;
	}

	return p - s;
}

size_t my_strlen3(const char* p)
{
	assert(p);
	if (*p == '\0')
	{
		return 0;
	}
	else
	{
		return 1 + my_strlen3(p+1);
	}
}